package org.itli.jnsocket.Controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.itli.jnsocket.Result.Result;
import org.itli.jnsocket.Service.OutBindHistoryService;
import org.itli.jnsocket.Util.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RequestMapping("/OutBindHistory")
@Tag(name = "出库记录")
@RestController
public class OutBindHistoryController {

    OutBindHistoryService service;

    @Autowired
    public void setService(OutBindHistoryService service) {
        this.service = service;
    }

    //获取卡片显示的数据
    @PostMapping("/CardInfo")
    @Operation(summary = "获取卡片信息")
    public Result<String> CardInfo(@RequestBody PageUtil page){
        String s = service.CardInfo(page);
        return Result.success(s);
    }


}
